package homework12月9号补交.homework2.d1;

import java.io.FileWriter;
import java.io.IOException;
import java.util.Properties;

/*将下面的内容添加到t4.properties 中

uid=001
username=jack
password=123
*/
public class Demo1 {
    public static void main(String[] args) throws IOException {
        Properties p = new Properties();
        p.setProperty("uid","001");
        p.setProperty("username","jack");
        p.setProperty("password","123");
        FileWriter fw = new FileWriter("t4.properties");
        p.store(fw,"yy");
        fw.close();
    }
}
